function giveUpRegister()
{
    // try {
    //     xhExtra.askChangeStatus('survey/welfare/saveKokugaku', {userId: xhTool.getQuery('userId'), giveUp: 1}, null, '确认放弃报名吗？', function () {
    //         window.location.href = baseUrl + 'survey/welfare/thank';
    //     });
    // }
    // catch (e) {
        if (confirm('确认放弃报名吗？')) {
            $.ajax({
                url: baseUrl + 'survey/welfare/saveKokugaku',
                type: 'POST',
                data: {
                    userId: xhTool.getQuery('userId'),
                    giveUp: 1
                },
                dataType: 'json',
                complete: function(XMLHttpRequest){
                    var result = XMLHttpRequest.responseJSON || XMLHttpRequest.responseText;
                    if(result.error){
                        alert(result.error);
                        return true;
                    }
                    window.location.href = baseUrl + 'survey/welfare/thank';
                }
            });
        }
    // }
}

function agreeRegister()
{
    window.location.href = window.location.origin + window.location.pathname + 'Sign' + window.location.search;
}